﻿#ifndef USERINF_H
#define USERINF_H
#include <QWidget>

namespace Ui {
class userinf;
}

class userinf : public QWidget
{
    Q_OBJECT


    //重写默认构造函数
public:
    explicit userinf(int sex,QString realname,QString id,QString typewrite,QWidget *parent = nullptr);

    //创建一个userinf的有参构造
//    userinf(QString id,QString name,int sex,QString typewrite);

    ~userinf();

public:
    void setid(QString id);
    void setname(QString name);
    void settypewrite(QString typewrite);
    void setsex(int sex);

    void setfacer(int index);
private slots:
    void on_update_clicked();

    void on_save_clicked();

private:
    Ui::userinf *ui;

//用户信息
private:
    QString id;
    QString realname;
    QString typewrite;
    int sex;
};

#endif // USERINF_H
